﻿using EMSClient.Config;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace EMSClient.CForm
{
    public partial class FormSoftName : Form
    {
        public FormSoftName()
        {
            InitializeComponent();
        }

        private void ucBtnExt22_BtnClick(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }
        public string fSoftName = "";
        private void ucBtnExt21_BtnClick(object sender, EventArgs e)
        {
            fSoftName = this.tb_SoftName.Text;
            EmsConfigHelper.SoftName = this.tb_SoftName.Text;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void FormSoftName_Load(object sender, EventArgs e)
        {
            this.tb_SoftName.Text = EmsConfigHelper.SoftName; 

        }
    }
}
